package com.ruoyi.report.domain;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
/**
 * @version v1.0
 * @ProjectName: report
 * @ClassName: ReportShareToken
 * @Description: TODO(一句话描述该类的功能)
 * @Author: 王莹
 * @Date: 2022/3/23 8:56
 */
public class ReportShareToken extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** id */
    private String id;

    /** 报表id */
    @Excel(name = "报表id")
    private String reportId;

    /** 报表名称 */
    @Excel(name = "报表名称")
    private String reportName;

    /** 提取码 */
    @Excel(name = "提取码")
    private String extractionNumber;

    /** 有效时间(单位：天) */
    @Excel(name = "有效时间(单位：天)")
    private Long effectiveTime;

    /** token */
    @Excel(name = "token")
    private String tokenStr;

    /** 分享人 */
    @Excel(name = "分享人")
    private String senderId;

    /** 过期时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "过期时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date expirationTime;

    public void setId(String id)
    {
        this.id = id;
    }

    public String getId()
    {
        return id;
    }
    public void setReportId(String reportId)
    {
        this.reportId = reportId;
    }

    public String getReportId()
    {
        return reportId;
    }
    public void setReportName(String reportName)
    {
        this.reportName = reportName;
    }

    public String getReportName()
    {
        return reportName;
    }
    public void setExtractionNumber(String extractionNumber)
    {
        this.extractionNumber = extractionNumber;
    }

    public String getExtractionNumber()
    {
        return extractionNumber;
    }
    public void setEffectiveTime(Long effectiveTime)
    {
        this.effectiveTime = effectiveTime;
    }

    public Long getEffectiveTime()
    {
        return effectiveTime;
    }
    public void setTokenStr(String tokenStr)
    {
        this.tokenStr = tokenStr;
    }

    public String getTokenStr()
    {
        return tokenStr;
    }
    public void setSenderId(String senderId)
    {
        this.senderId = senderId;
    }

    public String getSenderId()
    {
        return senderId;
    }
    public void setExpirationTime(Date expirationTime)
    {
        this.expirationTime = expirationTime;
    }

    public Date getExpirationTime()
    {
        return expirationTime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("reportId", getReportId())
                .append("reportName", getReportName())
                .append("extractionNumber", getExtractionNumber())
                .append("effectiveTime", getEffectiveTime())
                .append("tokenStr", getTokenStr())
                .append("senderId", getSenderId())
                .append("createBy", getCreateBy())
                .append("createTime", getCreateTime())
                .append("expirationTime", getExpirationTime())
                .append("updateBy", getUpdateBy())
                .append("updateTime", getUpdateTime())
                .toString();
    }
}